<fieldset>
  <legend>Database Maintenance</legend>

  <table>
    <tr>
      <td>Current schema version:</td>
      <td>{$current}</td>
    </tr>
    <tr>
      <td>Expected schema version:</td>
      <td>{$expected}</td>
    </tr>
    <tr>
      <td colspan=2>
        <br/>
        Actions:
        <ul class="action-list">
          {if empty($updateUrl)}
          <li><span class="disabled-action">Update schema</span></li>
          {else}
          <li><a href="{$updateUrl}">Update schema</a></li>
          {/if}

          {if empty($saveUrl)}
          <li><span class="disabled-action">Save snapshot</span></li>
          {else}
          <li><a href="{$saveUrl}">Save snapshot</a></li>
          {/if}

          {if empty($loadUrl) || empty($snapshot)}
          <li><span class="disabled-action">Load snapshot</span></li>
          {else}
          <li><a href="{$loadUrl}">Load snapshot ({$snapshot})</a></li>
          {/if}
        </ul>
      </td>
    </tr>
  </table>

</fieldset>
